/**
 * Quadracopter Controller Project
 * 
 * by: AR,OK,CM,MSS
 * 
 */
 
#include "system_c.h"

void main(void) {
	
	System_Init();
	
	while(1){
		System_Routine();
	}		
}

/*------------------------------------------------------------------------------
* Timer A ISR
------------------------------------------------------------------------------*/
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
{
  gsSystem.InterruptReg |= TIMER;
}

/*------------------------------------------------------------------------------
* USCIA interrupt service routine
* UART receiving a character.
------------------------------------------------------------------------------*/
#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCI0RX_ISR(void)
{
   	if (UCA0RXBUF == 'G' || UCA0RXBUF == 'R')
   	{
   		gsSystem.InterruptReg |= UART;
   	}
}
